-
Notifications
You must be signed in to change notification settings - Fork 6
h2 tests and deproxy h2 update #387
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Now client can: - send settings frame; - update default settings before create connection; - accept settings frame with ack flag; - wait settings frame with ack flag; `handle_read` method for deproxy h2 client - now `method` variable is created when client receives `ResponseReceived` event. This fixes error of receiving frames other than headers.
…al flow control in stream.
…ERROR is received. Deproxy is updated. Now client saves received error codes in list.
- response is larger than SETTINGS_MAX_FRAME_SIZE. - request is larger than SETTINGS_MAX_FRAME_SIZE.
…ings but did not change them for itself.
884cf1c
to
0e05a14
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
framework/deproxy_client.py
Outdated
@@ -417,6 +427,80 @@ def make_request(self, request: tuple or list or str, end_stream=True, huffman=T | |||
self.stream_id += 2 | |||
self.valid_req_num += 1 | |||
|
|||
def update_initiate_settings( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe would be better to use name update_initial_settings
instead of update_initiate_settings
?
framework/deproxy_client.py
Outdated
if self.selfproxy_present: | ||
self.update_selfproxy() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need it here?
renamed `update_initiate_settings` method, new name - `update_initial_settings`. `handle_close` method was removed for case when client receives GOAWAY frame - client must not close connection, Tempesta does it
Now deproxy h2 client can:
handle_read
method for deproxy h2 client - nowmethod
variable is created when client receivesResponseReceived
event. This fixes error of receiving frames other than headers.Added tests for issue #88:
For all cases from issue #344
For issue #1394:
Added some tests for RFC 7541 and 9113.